
find_device2:     file format elf64-littleaarch64


Disassembly of section .init:

0000000000400628 <_init>:
  400628:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  40062c:	910003fd 	mov	x29, sp
  400630:	9400004a 	bl	400758 <call_weak_fn>
  400634:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400638:	d65f03c0 	ret

Disassembly of section .plt:

0000000000400640 <.plt>:
  400640:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  400644:	90000090 	adrp	x16, 410000 <__FRAME_END__+0xf594>
  400648:	f947fe11 	ldr	x17, [x16, #4088]
  40064c:	913fe210 	add	x16, x16, #0xff8
  400650:	d61f0220 	br	x17
  400654:	d503201f 	nop
  400658:	d503201f 	nop
  40065c:	d503201f 	nop

0000000000400660 <perror@plt>:
  400660:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  400664:	f9400211 	ldr	x17, [x16]
  400668:	91000210 	add	x16, x16, #0x0
  40066c:	d61f0220 	br	x17

0000000000400670 <fclose@plt>:
  400670:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  400674:	f9400611 	ldr	x17, [x16, #8]
  400678:	91002210 	add	x16, x16, #0x8
  40067c:	d61f0220 	br	x17

0000000000400680 <fopen@plt>:
  400680:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  400684:	f9400a11 	ldr	x17, [x16, #16]
  400688:	91004210 	add	x16, x16, #0x10
  40068c:	d61f0220 	br	x17

0000000000400690 <__libc_start_main@plt>:
  400690:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  400694:	f9400e11 	ldr	x17, [x16, #24]
  400698:	91006210 	add	x16, x16, #0x18
  40069c:	d61f0220 	br	x17

00000000004006a0 <sleep@plt>:
  4006a0:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  4006a4:	f9401211 	ldr	x17, [x16, #32]
  4006a8:	91008210 	add	x16, x16, #0x20
  4006ac:	d61f0220 	br	x17

00000000004006b0 <__gmon_start__@plt>:
  4006b0:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  4006b4:	f9401611 	ldr	x17, [x16, #40]
  4006b8:	9100a210 	add	x16, x16, #0x28
  4006bc:	d61f0220 	br	x17

00000000004006c0 <abort@plt>:
  4006c0:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  4006c4:	f9401a11 	ldr	x17, [x16, #48]
  4006c8:	9100c210 	add	x16, x16, #0x30
  4006cc:	d61f0220 	br	x17

00000000004006d0 <puts@plt>:
  4006d0:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  4006d4:	f9401e11 	ldr	x17, [x16, #56]
  4006d8:	9100e210 	add	x16, x16, #0x38
  4006dc:	d61f0220 	br	x17

00000000004006e0 <fread@plt>:
  4006e0:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  4006e4:	f9402211 	ldr	x17, [x16, #64]
  4006e8:	91010210 	add	x16, x16, #0x40
  4006ec:	d61f0220 	br	x17

00000000004006f0 <strstr@plt>:
  4006f0:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  4006f4:	f9402611 	ldr	x17, [x16, #72]
  4006f8:	91012210 	add	x16, x16, #0x48
  4006fc:	d61f0220 	br	x17

0000000000400700 <printf@plt>:
  400700:	b0000090 	adrp	x16, 411000 <perror@GLIBC_2.17>
  400704:	f9402a11 	ldr	x17, [x16, #80]
  400708:	91014210 	add	x16, x16, #0x50
  40070c:	d61f0220 	br	x17

Disassembly of section .text:

0000000000400710 <_start>:
  400710:	d280001d 	mov	x29, #0x0                   	// #0
  400714:	d280001e 	mov	x30, #0x0                   	// #0
  400718:	aa0003e5 	mov	x5, x0
  40071c:	f94003e1 	ldr	x1, [sp]
  400720:	910023e2 	add	x2, sp, #0x8
  400724:	910003e6 	mov	x6, sp
  400728:	580000c0 	ldr	x0, 400740 <_start+0x30>
  40072c:	580000e3 	ldr	x3, 400748 <_start+0x38>
  400730:	58000104 	ldr	x4, 400750 <_start+0x40>
  400734:	97ffffd7 	bl	400690 <__libc_start_main@plt>
  400738:	97ffffe2 	bl	4006c0 <abort@plt>
  40073c:	00000000 	.inst	0x00000000 ; undefined
  400740:	00400954 	.word	0x00400954
  400744:	00000000 	.word	0x00000000
  400748:	00400970 	.word	0x00400970
  40074c:	00000000 	.word	0x00000000
  400750:	004009f0 	.word	0x004009f0
  400754:	00000000 	.word	0x00000000

0000000000400758 <call_weak_fn>:
  400758:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf594>
  40075c:	f947f000 	ldr	x0, [x0, #4064]
  400760:	b4000040 	cbz	x0, 400768 <call_weak_fn+0x10>
  400764:	17ffffd3 	b	4006b0 <__gmon_start__@plt>
  400768:	d65f03c0 	ret
  40076c:	00000000 	.inst	0x00000000 ; undefined

0000000000400770 <deregister_tm_clones>:
  400770:	b0000080 	adrp	x0, 411000 <perror@GLIBC_2.17>
  400774:	9101a000 	add	x0, x0, #0x68
  400778:	b0000081 	adrp	x1, 411000 <perror@GLIBC_2.17>
  40077c:	9101a021 	add	x1, x1, #0x68
  400780:	eb00003f 	cmp	x1, x0
  400784:	540000a0 	b.eq	400798 <deregister_tm_clones+0x28>  // b.none
  400788:	90000001 	adrp	x1, 400000 <_init-0x628>
  40078c:	f9450821 	ldr	x1, [x1, #2576]
  400790:	b4000041 	cbz	x1, 400798 <deregister_tm_clones+0x28>
  400794:	d61f0020 	br	x1
  400798:	d65f03c0 	ret
  40079c:	d503201f 	nop

00000000004007a0 <register_tm_clones>:
  4007a0:	b0000080 	adrp	x0, 411000 <perror@GLIBC_2.17>
  4007a4:	9101a000 	add	x0, x0, #0x68
  4007a8:	b0000081 	adrp	x1, 411000 <perror@GLIBC_2.17>
  4007ac:	9101a021 	add	x1, x1, #0x68
  4007b0:	cb000021 	sub	x1, x1, x0
  4007b4:	9343fc21 	asr	x1, x1, #3
  4007b8:	8b41fc21 	add	x1, x1, x1, lsr #63
  4007bc:	9341fc21 	asr	x1, x1, #1
  4007c0:	b40000a1 	cbz	x1, 4007d4 <register_tm_clones+0x34>
  4007c4:	90000002 	adrp	x2, 400000 <_init-0x628>
  4007c8:	f9450c42 	ldr	x2, [x2, #2584]
  4007cc:	b4000042 	cbz	x2, 4007d4 <register_tm_clones+0x34>
  4007d0:	d61f0040 	br	x2
  4007d4:	d65f03c0 	ret

00000000004007d8 <__do_global_dtors_aux>:
  4007d8:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  4007dc:	910003fd 	mov	x29, sp
  4007e0:	f9000bf3 	str	x19, [sp, #16]
  4007e4:	b0000093 	adrp	x19, 411000 <perror@GLIBC_2.17>
  4007e8:	3941a260 	ldrb	w0, [x19, #104]
  4007ec:	35000080 	cbnz	w0, 4007fc <__do_global_dtors_aux+0x24>
  4007f0:	97ffffe0 	bl	400770 <deregister_tm_clones>
  4007f4:	52800020 	mov	w0, #0x1                   	// #1
  4007f8:	3901a260 	strb	w0, [x19, #104]
  4007fc:	f9400bf3 	ldr	x19, [sp, #16]
  400800:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400804:	d65f03c0 	ret

0000000000400808 <frame_dummy>:
  400808:	17ffffe6 	b	4007a0 <register_tm_clones>

000000000040080c <find_device>:
  40080c:	d110c3ff 	sub	sp, sp, #0x430
  400810:	a9007bfd 	stp	x29, x30, [sp]
  400814:	910003fd 	mov	x29, sp
  400818:	b9042fbf 	str	wzr, [x29, #1068]
  40081c:	f90213bf 	str	xzr, [x29, #1056]
  400820:	f9020fbf 	str	xzr, [x29, #1048]
  400824:	90000000 	adrp	x0, 400000 <_init-0x628>
  400828:	91288001 	add	x1, x0, #0xa20
  40082c:	90000000 	adrp	x0, 400000 <_init-0x628>
  400830:	9128a000 	add	x0, x0, #0xa28
  400834:	97ffff93 	bl	400680 <fopen@plt>
  400838:	f9020fa0 	str	x0, [x29, #1048]
  40083c:	f9420fa0 	ldr	x0, [x29, #1048]
  400840:	f100001f 	cmp	x0, #0x0
  400844:	54000700 	b.eq	400924 <find_device+0x118>  // b.none
  400848:	910043a0 	add	x0, x29, #0x10
  40084c:	f9420fa3 	ldr	x3, [x29, #1048]
  400850:	d2808002 	mov	x2, #0x400                 	// #1024
  400854:	d2800021 	mov	x1, #0x1                   	// #1
  400858:	97ffffa2 	bl	4006e0 <fread@plt>
  40085c:	b90417a0 	str	w0, [x29, #1044]
  400860:	b94417a0 	ldr	w0, [x29, #1044]
  400864:	7100001f 	cmp	w0, #0x0
  400868:	5400064d 	b.le	400930 <find_device+0x124>
  40086c:	910043a0 	add	x0, x29, #0x10
  400870:	f90213a0 	str	x0, [x29, #1056]
  400874:	14000024 	b	400904 <find_device+0xf8>
  400878:	90000000 	adrp	x0, 400000 <_init-0x628>
  40087c:	9128e000 	add	x0, x0, #0xa38
  400880:	aa0003e1 	mov	x1, x0
  400884:	f94213a0 	ldr	x0, [x29, #1056]
  400888:	97ffff9a 	bl	4006f0 <strstr@plt>
  40088c:	f90213a0 	str	x0, [x29, #1056]
  400890:	f94213a0 	ldr	x0, [x29, #1056]
  400894:	f100001f 	cmp	x0, #0x0
  400898:	54000360 	b.eq	400904 <find_device+0xf8>  // b.none
  40089c:	f94213a0 	ldr	x0, [x29, #1056]
  4008a0:	91002800 	add	x0, x0, #0xa
  4008a4:	f90213a0 	str	x0, [x29, #1056]
  4008a8:	90000000 	adrp	x0, 400000 <_init-0x628>
  4008ac:	91292000 	add	x0, x0, #0xa48
  4008b0:	aa0003e1 	mov	x1, x0
  4008b4:	f94213a0 	ldr	x0, [x29, #1056]
  4008b8:	97ffff8e 	bl	4006f0 <strstr@plt>
  4008bc:	f90213a0 	str	x0, [x29, #1056]
  4008c0:	f94213a0 	ldr	x0, [x29, #1056]
  4008c4:	f100001f 	cmp	x0, #0x0
  4008c8:	540001e0 	b.eq	400904 <find_device+0xf8>  // b.none
  4008cc:	f94213a0 	ldr	x0, [x29, #1056]
  4008d0:	91001000 	add	x0, x0, #0x4
  4008d4:	f90213a0 	str	x0, [x29, #1056]
  4008d8:	14000004 	b	4008e8 <find_device+0xdc>
  4008dc:	f94213a0 	ldr	x0, [x29, #1056]
  4008e0:	91000400 	add	x0, x0, #0x1
  4008e4:	f90213a0 	str	x0, [x29, #1056]
  4008e8:	f94213a0 	ldr	x0, [x29, #1056]
  4008ec:	39400000 	ldrb	w0, [x0]
  4008f0:	7100801f 	cmp	w0, #0x20
  4008f4:	54ffff40 	b.eq	4008dc <find_device+0xd0>  // b.none
  4008f8:	b9442fa0 	ldr	w0, [x29, #1068]
  4008fc:	11000400 	add	w0, w0, #0x1
  400900:	b9042fa0 	str	w0, [x29, #1068]
  400904:	f94213a0 	ldr	x0, [x29, #1056]
  400908:	f100001f 	cmp	x0, #0x0
  40090c:	54fffb61 	b.ne	400878 <find_device+0x6c>  // b.any
  400910:	90000000 	adrp	x0, 400000 <_init-0x628>
  400914:	91294000 	add	x0, x0, #0xa50
  400918:	b9442fa1 	ldr	w1, [x29, #1068]
  40091c:	97ffff79 	bl	400700 <printf@plt>
  400920:	14000004 	b	400930 <find_device+0x124>
  400924:	90000000 	adrp	x0, 400000 <_init-0x628>
  400928:	9128a000 	add	x0, x0, #0xa28
  40092c:	97ffff4d 	bl	400660 <perror@plt>
  400930:	f9420fa0 	ldr	x0, [x29, #1048]
  400934:	97ffff4f 	bl	400670 <fclose@plt>
  400938:	90000000 	adrp	x0, 400000 <_init-0x628>
  40093c:	91298000 	add	x0, x0, #0xa60
  400940:	97ffff64 	bl	4006d0 <puts@plt>
  400944:	b9442fa0 	ldr	w0, [x29, #1068]
  400948:	a9407bfd 	ldp	x29, x30, [sp]
  40094c:	9110c3ff 	add	sp, sp, #0x430
  400950:	d65f03c0 	ret

0000000000400954 <main>:
  400954:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  400958:	910003fd 	mov	x29, sp
  40095c:	97ffffac 	bl	40080c <find_device>
  400960:	52800020 	mov	w0, #0x1                   	// #1
  400964:	97ffff4f 	bl	4006a0 <sleep@plt>
  400968:	17fffffd 	b	40095c <main+0x8>
  40096c:	00000000 	.inst	0x00000000 ; undefined

0000000000400970 <__libc_csu_init>:
  400970:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  400974:	910003fd 	mov	x29, sp
  400978:	a901d7f4 	stp	x20, x21, [sp, #24]
  40097c:	90000094 	adrp	x20, 410000 <__FRAME_END__+0xf594>
  400980:	90000095 	adrp	x21, 410000 <__FRAME_END__+0xf594>
  400984:	91374294 	add	x20, x20, #0xdd0
  400988:	913722b5 	add	x21, x21, #0xdc8
  40098c:	a902dff6 	stp	x22, x23, [sp, #40]
  400990:	cb150294 	sub	x20, x20, x21
  400994:	f9001ff8 	str	x24, [sp, #56]
  400998:	2a0003f6 	mov	w22, w0
  40099c:	aa0103f7 	mov	x23, x1
  4009a0:	9343fe94 	asr	x20, x20, #3
  4009a4:	aa0203f8 	mov	x24, x2
  4009a8:	97ffff20 	bl	400628 <_init>
  4009ac:	b4000194 	cbz	x20, 4009dc <__libc_csu_init+0x6c>
  4009b0:	f9000bb3 	str	x19, [x29, #16]
  4009b4:	d2800013 	mov	x19, #0x0                   	// #0
  4009b8:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  4009bc:	aa1803e2 	mov	x2, x24
  4009c0:	aa1703e1 	mov	x1, x23
  4009c4:	2a1603e0 	mov	w0, w22
  4009c8:	91000673 	add	x19, x19, #0x1
  4009cc:	d63f0060 	blr	x3
  4009d0:	eb13029f 	cmp	x20, x19
  4009d4:	54ffff21 	b.ne	4009b8 <__libc_csu_init+0x48>  // b.any
  4009d8:	f9400bb3 	ldr	x19, [x29, #16]
  4009dc:	a941d7f4 	ldp	x20, x21, [sp, #24]
  4009e0:	a942dff6 	ldp	x22, x23, [sp, #40]
  4009e4:	f9401ff8 	ldr	x24, [sp, #56]
  4009e8:	a8c47bfd 	ldp	x29, x30, [sp], #64
  4009ec:	d65f03c0 	ret

00000000004009f0 <__libc_csu_fini>:
  4009f0:	d65f03c0 	ret

Disassembly of section .fini:

00000000004009f4 <_fini>:
  4009f4:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4009f8:	910003fd 	mov	x29, sp
  4009fc:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400a00:	d65f03c0 	ret
